|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.engine.support.ProcessContextWrapper
public abstract class ProcessContextWrapper
A wrapper for the IProcessContext interface.
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.vtp.framework.core.IReporter |
|---|
SEVERITY_DEBUG, SEVERITY_ERROR, SEVERITY_INFO, SEVERITY_WARN |
| Constructor Summary | |
|---|---|
protected |
ProcessContextWrapper()
Creates a new ProcessContextWrapper. |
| Method Summary | |
|---|---|
void |
debug(java.lang.String message)
Creates and publishes a debug log entry with the specified attributes. |
void |
debug(java.lang.String[] categories,
java.lang.String message)
Creates and publishes a debug log entry with the specified attributes. |
void |
debug(java.lang.String[] categories,
java.lang.String message,
java.util.Dictionary properties)
Creates and publishes a debug log entry with the specified attributes. |
void |
debug(java.lang.String message,
java.util.Dictionary properties)
Creates and publishes a debug log entry with the specified attributes. |
void |
error(java.lang.String message)
Creates and publishes an error log entry with the specified attributes. |
void |
error(java.lang.String[] categories,
java.lang.String message)
Creates and publishes an error log entry with the specified attributes. |
void |
error(java.lang.String[] categories,
java.lang.String message,
java.util.Dictionary properties)
Creates and publishes an error log entry with the specified attributes. |
void |
error(java.lang.String message,
java.util.Dictionary properties)
Creates and publishes an error log entry with the specified attributes. |
protected abstract IProcessContext |
getProcessContext()
Returns the wrapped process context. |
java.lang.String |
getProcessID()
Returns the ID of this process. |
java.lang.Object |
getProperty(java.lang.String propertyName)
Returns the value of the process-level configuration property with the specified name or null if no such property exists. |
void |
info(java.lang.String message)
Creates and publishes an informational log entry with the specified attributes. |
void |
info(java.lang.String[] categories,
java.lang.String message)
Creates and publishes an informational log entry with the specified attributes. |
void |
info(java.lang.String[] categories,
java.lang.String message,
java.util.Dictionary properties)
Creates and publishes an informational log entry with the specified attributes. |
void |
info(java.lang.String message,
java.util.Dictionary properties)
Creates and publishes an informational log entry with the specified attributes. |
boolean |
isDebugEnabled()
Returns true if the debug severity level is enabled. |
boolean |
isErrorEnabled()
Returns true if the error severity level is enabled. |
boolean |
isInfoEnabled()
Returns true if the informational severity level is enabled. |
protected boolean |
isReservedIdentifier(java.lang.String identifier)
Returns true if the specified identifier is implemented by the context. |
boolean |
isSeverityEnabled(int severity)
Returns true if the specified severity level is enabled. |
boolean |
isWarnEnabled()
Returns true if the warning severity level is enabled. |
java.lang.Class |
loadClass(java.lang.String className)
Loads a class visible to the process. |
void |
log(int severity,
java.lang.String message)
Creates and publishes a log entry with the specified attributes. |
void |
log(int severity,
java.lang.String[] categories,
java.lang.String message)
Creates and publishes a log entry with the specified attributes. |
void |
log(int severity,
java.lang.String[] categories,
java.lang.String message,
java.util.Dictionary properties)
Creates and publishes a log entry with the specified attributes. |
void |
log(int severity,
java.lang.String message,
java.util.Dictionary properties)
Creates and publishes a log entry with the specified attributes. |
java.lang.Object |
lookup(java.lang.String identifier)
Looks up the service selected for the specified identifier or null if no such service exists. |
java.lang.Object[] |
lookupAll(java.lang.String identifier)
Returns an array containing all the services registered under the specified identifier. |
void |
report(int severity,
java.lang.String message)
Creates and publishes a reporting entry with the specified attributes. |
void |
report(int severity,
java.lang.String[] categories,
java.lang.String message)
Creates and publishes a reporting entry with the specified attributes. |
void |
report(int severity,
java.lang.String[] categories,
java.lang.String message,
java.util.Dictionary properties)
Creates and publishes a reporting entry with the specified attributes. |
void |
report(int severity,
java.lang.String message,
java.util.Dictionary properties)
Creates and publishes a reporting entry with the specified attributes. |
void |
warn(java.lang.String message)
Creates and publishes a warning log entry with the specified attributes. |
void |
warn(java.lang.String[] categories,
java.lang.String message)
Creates and publishes a warning log entry with the specified attributes. |
void |
warn(java.lang.String[] categories,
java.lang.String message,
java.util.Dictionary properties)
Creates and publishes a warning log entry with the specified attributes. |
void |
warn(java.lang.String message,
java.util.Dictionary properties)
Creates and publishes a warning log entry with the specified attributes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ProcessContextWrapper()
| Method Detail |
|---|
protected boolean isReservedIdentifier(java.lang.String identifier)
identifier - The identifier to check.
protected abstract IProcessContext getProcessContext()
public boolean isSeverityEnabled(int severity)
IReporter
isSeverityEnabled in interface IReporterseverity - The severity to check.
public void report(int severity,
java.lang.String message)
IReporter
report in interface IReporterseverity - The severity of the report.message - The message associated with the report or null
to not include a message.
public void report(int severity,
java.lang.String message,
java.util.Dictionary properties)
IReporter
report in interface IReporterseverity - The severity of the report.message - The message associated with the report or null
to not include a message.properties - The properties of the report or null if no
properties are specified.
public void report(int severity,
java.lang.String[] categories,
java.lang.String message)
IReporter
report in interface IReporterseverity - The severity of the report.categories - The categories the report pertains to or
null if no catagories are related.message - The message associated with the report or null
to not include a message.
public void report(int severity,
java.lang.String[] categories,
java.lang.String message,
java.util.Dictionary properties)
IReporter
report in interface IReporterseverity - The severity of the report.categories - The categories the report pertains to or
null if no catagories are related.message - The message associated with the report or null
to not include a message.properties - The properties of the report or null if no
properties are specified.
public void log(int severity,
java.lang.String message)
ILogger
log in interface ILoggerseverity - The severity of the log entry.message - The message associated with the log entry or
null to not include a message.
public void log(int severity,
java.lang.String message,
java.util.Dictionary properties)
ILogger
log in interface ILoggerseverity - The severity of the log entry.message - The message associated with the log entry or
null to not include a message.properties - The properties of the log entry or null if
no properties are specified.
public void log(int severity,
java.lang.String[] categories,
java.lang.String message)
ILogger
log in interface ILoggerseverity - The severity of the log entry.categories - The categories the log entry pertains to or
null if no catagories are related.message - The message associated with the log entry or
null to not include a message.
public void log(int severity,
java.lang.String[] categories,
java.lang.String message,
java.util.Dictionary properties)
ILogger
log in interface ILoggerseverity - The severity of the log entry.categories - The categories the log entry pertains to or
null if no catagories are related.message - The message associated with the log entry or
null to not include a message.properties - The properties of the log entry or null if
no properties are specified.public boolean isErrorEnabled()
ILogger
isErrorEnabled in interface ILoggerpublic void error(java.lang.String message)
ILogger
error in interface ILoggermessage - The message associated with the log entry or
null to not include a message.
public void error(java.lang.String message,
java.util.Dictionary properties)
ILogger
error in interface ILoggermessage - The message associated with the log entry or
null to not include a message.properties - The properties of the log entry or null if
no properties are specified.
public void error(java.lang.String[] categories,
java.lang.String message)
ILogger
error in interface ILoggercategories - The categories the log entry pertains to or
null if no catagories are related.message - The message associated with the log entry or
null to not include a message.
public void error(java.lang.String[] categories,
java.lang.String message,
java.util.Dictionary properties)
ILogger
error in interface ILoggercategories - The categories the log entry pertains to or
null if no catagories are related.message - The message associated with the log entry or
null to not include a message.properties - The properties of the log entry or null if
no properties are specified.public boolean isWarnEnabled()
ILogger
isWarnEnabled in interface ILoggerpublic void warn(java.lang.String message)
ILogger
warn in interface ILoggermessage - The message associated with the log entry or
null to not include a message.
public void warn(java.lang.String message,
java.util.Dictionary properties)
ILogger
warn in interface ILoggermessage - The message associated with the log entry or
null to not include a message.properties - The properties of the log entry or null if
no properties are specified.
public void warn(java.lang.String[] categories,
java.lang.String message)
ILogger
warn in interface ILoggercategories - The categories the log entry pertains to or
null if no catagories are related.message - The message associated with the log entry or
null to not include a message.
public void warn(java.lang.String[] categories,
java.lang.String message,
java.util.Dictionary properties)
ILogger
warn in interface ILoggercategories - The categories the log entry pertains to or
null if no catagories are related.message - The message associated with the log entry or
null to not include a message.properties - The properties of the log entry or null if
no properties are specified.public boolean isInfoEnabled()
ILogger
isInfoEnabled in interface ILoggerpublic void info(java.lang.String message)
ILogger
info in interface ILoggermessage - The message associated with the log entry or
null to not include a message.
public void info(java.lang.String message,
java.util.Dictionary properties)
ILogger
info in interface ILoggermessage - The message associated with the log entry or
null to not include a message.properties - The properties of the log entry or null if
no properties are specified.
public void info(java.lang.String[] categories,
java.lang.String message)
ILogger
info in interface ILoggercategories - The categories the log entry pertains to or
null if no catagories are related.message - The message associated with the log entry or
null to not include a message.
public void info(java.lang.String[] categories,
java.lang.String message,
java.util.Dictionary properties)
ILogger
info in interface ILoggercategories - The categories the log entry pertains to or
null if no catagories are related.message - The message associated with the log entry or
null to not include a message.properties - The properties of the log entry or null if
no properties are specified.public boolean isDebugEnabled()
ILogger
isDebugEnabled in interface ILoggerpublic void debug(java.lang.String message)
ILogger
debug in interface ILoggermessage - The message associated with the log entry or
null to not include a message.
public void debug(java.lang.String message,
java.util.Dictionary properties)
ILogger
debug in interface ILoggermessage - The message associated with the log entry or
null to not include a message.properties - The properties of the log entry or null if
no properties are specified.
public void debug(java.lang.String[] categories,
java.lang.String message)
ILogger
debug in interface ILoggercategories - The categories the log entry pertains to or
null if no catagories are related.message - The message associated with the log entry or
null to not include a message.
public void debug(java.lang.String[] categories,
java.lang.String message,
java.util.Dictionary properties)
ILogger
debug in interface ILoggercategories - The categories the log entry pertains to or
null if no catagories are related.message - The message associated with the log entry or
null to not include a message.properties - The properties of the log entry or null if
no properties are specified.
public java.lang.Object lookup(java.lang.String identifier)
throws java.lang.NullPointerException
IContextnull if no such service exists.
lookup in interface IContextidentifier - The identifier of the service to look up.
null if no such service exists.
java.lang.NullPointerException - If the supplied identifier is
null.
public java.lang.Object[] lookupAll(java.lang.String identifier)
throws java.lang.NullPointerException
IContext
lookupAll in interface IContextidentifier - The identifier of the services to look up.
java.lang.NullPointerException - If the supplied identifier is
null.public java.lang.String getProcessID()
IProcessContext
getProcessID in interface IProcessContext
public java.lang.Object getProperty(java.lang.String propertyName)
throws java.lang.NullPointerException
IProcessContextnull if no such property exists.
getProperty in interface IProcessContextpropertyName - The name of the configuration property to return.
null if no such property exists.
java.lang.NullPointerException - If the supplied property name is
null.
public java.lang.Class loadClass(java.lang.String className)
throws java.lang.ClassNotFoundException,
java.lang.NullPointerException
IProcessContext
loadClass in interface IProcessContextclassName - The name of the class to load.
java.lang.ClassNotFoundException - If a class with the specified name cannot be
found.
java.lang.NullPointerException - If the supplied class name is
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||